
import { getFavoritesList } from '@/api/user.js'
const state = {
  list: []
}
const mutations = {
  setList (state, payload) {
    state.list = payload
  }
}
const actions = {
  async loadList (context, payload) {
    try {
      const res = await getFavoritesList()
      context.commit('setList', res.data.body)
    } catch (err) {
    }
  }
}
const getters = { }

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
